<?php
require_once(dirname(__FILE__) . '/../../../system/git/context.php');
require_once(dirname(__FILE__) . '/../../../git/handler/gitLoginHandler.php');

class ControllerAccountFlogin extends Controller {
	public function index() {
		$target = isset($_POST['rp_target']) ? $_POST['rp_target'] : '';
		$email = isset($_POST['email']) ? $_POST['email'] : '';
		$password = isset($_POST['password']) ? $_POST['password'] : '';

		ContextLoader::load($this->registry);
		$handler = new gitLoginHandler($target, $email, $password);
		$handler->execute();
	}
}
?>
